package com.nuanshui.heatedloan.msgcenter.apppush.bean;

import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;

/**
 * 三方推送的信息
 * @param 
 * @author guohao
 * @date 2017年2月10日 下午4:40:56
 * @since $
 */
public class ThirdPushMsgInfo {
	
	private String msgId;//消息id
	private String deviceToken;//要推送的设备token
	private String deviceType;//要送的的设备的类型 ios android 等等
	private int badge = 0;//未读信息的个数
	private Map<String,Object> customParams = new HashMap<String, Object>();//自定义参数
	private String title;//标题
	private String content;//内容
	private String userId;//推送给那个用户
	private Integer env;// 环境  1 表示正式  0 表示测试
	private String pushParams;

	public Integer getEnv() {
		return env;
	}

	public void setEnv(Integer env) {
		this.env = env;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public int getBadge() {
		return badge;
	}

	public void setBadge(int badge) {
		this.badge = badge;
	}

	public Map<String, Object> getCustomParams() {
		if(customParams == null) return Maps.newHashMap();
		return customParams;
	}

	public void setCustomParams(Map<String, Object> customParams) {
		this.customParams = customParams;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
